package cn.janescott.weixin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 微信公众号
 *
 * @author scott
 */
@SpringBootApplication
@Controller
public class WeixinApplication {

    public static void main(String[] args) {
        SpringApplication.run(WeixinApplication.class, args);
    }

    @GetMapping("/")
    public String execute() {
        return "Index";
    }

    @GetMapping("/info")
    @ResponseBody
    public String info() {
        return "info";
    }

}
